package masterjava.common.shared.state;

import masterjava.common.shared.logging.LoggingLevel;

/**
 * User: GKislin
 * Date: 08.10.2010
 */
public enum StateType {
    OK(LoggingLevel.INFO),
    WARNING(LoggingLevel.WARN),
    ERROR(LoggingLevel.ERROR),
    FATAL(LoggingLevel.FATAL);

    StateType(LoggingLevel level) {
        this.loggingLevel = level;
    }

    private LoggingLevel loggingLevel;

    public LoggingLevel getLoggingLevel() {
        return loggingLevel;
    }

    @Override
    public String toString() {
        return "[" + name() + "]";
    }
}
